﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;

namespace WotModSync
{
    public static class PathUtils
    {
        public static string RemoveWotDirectoryFromPath(string path, string wotDirectory)
        {
            return path.Replace(wotDirectory, "").Trim('\\');
        }

        public static string GetParentPath(string path)
        {
            return new DirectoryInfo(path).Parent.FullName;
        }

        public static string GetCurrentDirectoyName(string path)
        {
            return new DirectoryInfo(path).Name;
        }

        public static string ReplaceBackslash(string path){

            return path.Replace("\\", "+");
        }

    }
}
